require(['/js/config.js'],() => {
    require(['template','request','jquery','header','footer'],(template,req)=>{
        class listPage{
            constructor(){
                this.init()
				console.log(123)
            }
            init(){
                this.getList()
            }
            getList(){
                const id = window.location.search.slice(3)
                $.get(`${req.baseUrl}/tab/${id}?start=0`,res=>{
                    if(res.code===200){
                        this.navBrash(res.data.items.list)
                    }
                })
            }
            navBrash(list){
                $("#listUl").html(template("listBrash",{list}))
            }
        }
        return new listPage()
    })
})



